package com.fjl.boot;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

// 16. 动态 Bean 示例
class DynamicBean {
    @PostConstruct
    public void init() {
        System.out.println(">> DynamicBean @PostConstruct");
    }
    @PreDestroy
    public void destroy() {
        System.out.println(">> DynamicBean @PreDestroy");
    }
}